import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path:"/",
        name:"start",
        component:()=>import("@/views/startTask.vue")
    },
    {
        path:"/home",
        name:"home",
        component:()=>import("@/views/home.vue")
    },
    {
        path:"/demo/:id",
        name:"demo",
        component:()=>import("@/layout/grid.vue"),
        props: true
    },
    {
        path:"/test",
        name:"test",
        component:()=>import("@/layout/input.vue"),
        alias: ["/d"]
    }
  ]
const router = createRouter({
    history: createWebHistory(),
    routes
});
export default router;